<html><head><title>EntityCollide</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">EntityCollide()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>EntityCollide</b></font>(#Entity, #Entity2)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Checks if the two specified entities are colliding. 
<br>
<br>
To have its collisions managed by the physic engine, an entity needs a body created with <a href="entityphysicbody.html">EntityPhysicBody()</a>. 
<br>
<br>
To have any effect, the physic engine needs to be activated with the <a href="../engine3d/enableworldphysics.html">EnableWorldPhysics()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
The first entity to test. 

</td></tr>
<tr><td><i>#Entity2</i></td>
<td> 
The second entity to test. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Return non-zero if the two entities are colliding. 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=entityboundingbox.html>EntityBoundingBox()</a> - <a href=index.html>Entity Index</a> - <a href=entitycustomparameter.html>EntityCustomParameter()</a> ->

</body></html>